import requests


def request_test(cookie):
    post_header_test = {"Cookie": str(cookie)}
    url_test = "http://jwcxk2.aufe.edu.cn/student/integratedQuery/planCompletion/index"
    try:
        text_url = requests.get(url_test, headers=post_header_test, timeout=0.7)
        if "忘记密码了" in text_url.text:
            return "cookie错误"
    except:
        return "现在网络不通畅，多点几次，或连接vpn后重试"
    return "cookie检查成功"
